//引入路由对象
import { createRouter, createWebHashHistory} from "vue-router"

//引入组件
import login from '@/components/login.vue'
import register from '@/components/register.vue'


// 创建路由
export default createRouter({
    history: createWebHashHistory(), //hash路由模式
    linkExactActiveClass: 'active',  //点击路由跳转的底部样式标量
    //路由列表
    routes: [
        // {
        //     //默认首页
        //     path: '/',
        //     name: 'home',
        //     component: home
        // },
        {
            path: '/login',
            name: 'login',
            component: login
        },
        {
            path: '/register',
            name: 'register',
            component: register
        },
    ]
})

